package cn.iocoder.yudao.module.ad.plan.api;

import cn.iocoder.yudao.module.ad.plan.service.AppAdPlanService;
import cn.iocoder.yudao.module.api.ad.plan.AdPlanApi;
import cn.iocoder.yudao.module.api.ad.plan.dto.AdPlanRespDTO;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import java.util.Set;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/03/04
 */
@Service
@Validated
public class AdPlanApiImpl implements AdPlanApi {

    @Resource
    private AppAdPlanService appAdPlanService;

    @Override
    public AdPlanRespDTO takeAvailable(Set<Long> excludePlanIds) {
        return appAdPlanService.takeAvailable(excludePlanIds);
    }

    @Override
    public  AdPlanRespDTO takeAvailable(Long excludeUserId, Set<Long> excludePlanIds) {
        return appAdPlanService.takeAvailable(excludeUserId, excludePlanIds);
    }

    @Override
    public Integer updateSpendPriceWhenPlayComplete(Long planId) {
       return appAdPlanService.updateSpendPriceWhenPlayComplete(planId);
    }

}
